package com.umeox.watch.moto.launcher.bean;

import androidx.annotation.Nullable;
import com.umeox.watch.moto.pedometer.base.BaseApp;

import java.util.ArrayList;

public class AppGroupInfo {

    public AppGroupInfo(String appLabel, int appIcon) {
        this.appLabel = appLabel;
        this.appIcon = appIcon;
    }

    public AppGroupInfo(int appNameId, int appIcon) {
        this.appLabel = BaseApp.getAppContext().getString(appNameId);
        this.appIcon = appIcon;
    }

    public void addAppInfo(AppInfo appInfo) {
        if (appInfos == null) {
            appInfos = new ArrayList<>();
        }
        appInfos.add(appInfo);
    }

    public boolean canDirectHandleAppAction() {
        return appInfos != null && appInfos.size() == 1;
    }



    public String appLabel;
    public int appIcon;

    @Nullable
    public ArrayList<AppInfo> appInfos;

    public String title;
    public int titleBackground;
    public int unreadMessageCount;

}
